{<?php if($stat == 'ok'):?>"review":{<?php $nb1 = count($review); $j = 0; foreach ($review as $key => $value): ++$j ?>"<?php echo $key ?>": <?php echo json_encode($value).($nb1 == $j ? '' : ',') ?><?php endforeach ?>},
<?php else: ?>"code": "<?php echo $error_code ?>","message": "<?php echo $error_msg ?>",
<?php endif; ?>"stat": "<?php echo $stat?>"}